package com.swx.identityservice.mapper;

import com.swx.identityservice.models.ScbpDept;
import com.swx.identityservice.models.ScbpDeptTree;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ScbpDeptMapper extends Mapper<ScbpDept> {
  List<ScbpDeptTree> getDeptsAsTree(Object key) throws Exception;

  List<ScbpDeptTree> getDeptsAndRolesAsTree(Object key) throws Exception;

   List<ScbpDept> selectDeptsByPid(@Param(value = "pid") int Pid);

   List<ScbpDept> selectDeptsList();

   List<ScbpDept> selectUnit();

   List<ScbpDept> getRolesByDeptIds(Integer[] id);

   ScbpDept selectDeptById(Integer id);

   ScbpDept selectDeptByName(String Title);

}
